<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        var arr = ["sxt","baizhan","it"];

        var names = [];
        names[0] = "iwen";
        names[1] = "frank";
        console.log(names);

        var info =[20,"iwen",true];
        console.log(info);

        //多维数组
        var rowArr = [100,200,["iwen","frank"]];
        console.log(rowArr);

        //下标：赋值或读取
        var user = ["iwen","ime","frank"];
        console.log(user[0]);
        console.log(user.length);//注意没有括号，有括号的叫方法，没有括号的叫属性
        
        console.log(user[5]);//数组越界：返回undefined
        
        
         
    </script>
</body>
</html>